package com.so.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 状态枚举
 *
 * @author system
 */
@Getter
@AllArgsConstructor
public enum StatusEnum implements IEnum<Integer> {

    NORMAL(0,"正常"),
    STOP(1,"停用");

    /**
     * code
     */
    @EnumValue
    @JsonValue
    private final Integer code;

    /**
     * 描述
     */
    private final String info;

    @Override
    public Integer getValue() {
        return code;
    }
}
